/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package main.blocks;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.imageio.ImageIO;
import main.common.Solid;

/**
 *
 * @author Fox
 */
public class Wall extends Solid {
    
    public Wall(String s) {
        try {
            img = ImageIO.read(new File(s));
        } catch (IOException ex) {
            Logger.getLogger(Wall.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    
    public Wall(String s, boolean solid) {
        try {
            img = ImageIO.read(new File(s));
        } catch (IOException ex) {
            Logger.getLogger(Wall.class.getName()).log(Level.SEVERE, null, ex);
        }
        
        this.setSolid(solid);
    }
    
    public Wall(BufferedImage img, boolean solid) {
        this.img = img;     
        this.setSolid(solid);
    }
}
